Skip to content

Conversation

@mduesterhoeft
Copy link
Member

Let request predicates produce sth like application/*+json

Let request predicates produce sth like application/*+json
@codecov
Copy link

codecov bot commented Jun 25, 2019

Codecov Report

Merging #26 into master will increase coverage by 0.38%.
The diff coverage is 90%.

Impacted file tree graph

@@             Coverage Diff              @@
##             master      #26      +/-   ##
============================================
+ Coverage     80.76%   81.14%   +0.38%     
- Complexity      122      124       +2     
============================================
  Files            15       16       +1     
  Lines           421      435      +14     
  Branches         85       93       +8     
============================================
+ Hits            340      353      +13     
- Misses           38       39       +1     
  Partials         43       43
Impacted Files Coverage Δ Complexity Δ
...o/moia/router/proto/ProtoDeserializationHandler.kt 88.88% <100%> (+5.55%) 7 <4> (+1) ⬆️
.../main/kotlin/io/moia/router/MediaTypeExtensions.kt 100% <100%> (ø) 0 <0> (?)
.../io/moia/router/proto/ProtoSerializationHandler.kt 100% <100%> (ø) 5 <0> (+1) ⬆️
...main/kotlin/io/moia/router/SerializationHandler.kt 100% <100%> (ø) 0 <0> (ø) ⬇️
...src/main/kotlin/io/moia/router/RequestPredicate.kt 100% <100%> (ø) 19 <0> (ø) ⬇️
...in/kotlin/io/moia/router/DeserializationHandler.kt 63.15% <50%> (+0.65%) 0 <0> (ø) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update c4b6f71...9b8fb3d. Read the comment docs.

override fun supports(input: APIGatewayProxyRequestEvent): Boolean =
input.contentType() != null && MediaType.parse(input.contentType()).`is`(proto)
if (input.contentType() == null)
false
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I believe you are missing this test case. I was going to write it for you but I'm having that weird kotlin overload problem

class MediaTypeTest {

@Test
fun `should match`() {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Table Test, just a little bit, pretty please, sugar on top 😁 😁 😄

@ruibritopt ruibritopt merged commit 5bf2198 into master Jun 25, 2019
@blockvote blockvote deleted the version-accept-header branch September 22, 2020 09:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants